{template 'common/header'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{$_W['styles']['fontcolor']};
	padding:0;
	margin:0;
	background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#D9D9D9{else}{$_W['styles']['indexbgcolor']}{/if};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{width:100%;overflow:hidden; padding:5% 3%; background:url('{if empty($_W['styles']['indexbgimg'])}./themes/style45/images/bg_index.jpg{else}{$_W['styles']['indexbgimg']}{/if}') no-repeat;}
	.box .box-item{float:left; text-align:center; display:block; text-decoration:none; outline:none; width:{php echo (100/3).'%';}; height:90px; position:relative; color:#FFF; background:#333; padding:5px 10px; overflow:hidden;}
	.box-item.darkblue{background:rgba(24,155,234,0.9); opacity:0.8;}
	.box-item.blue{background: rgba(92,188,242,0.9); opacity:0.8;}
	.box .box-item i{display:inline-block; width:50px; height:50px; line-height:50px; font-size:35px; color:#FFF; overflow:hidden;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']};display:block;font-size:14px; width:90%; height:20px; line-height:20px; margin:0 5%; text-align:center; overflow:hidden;}
	.bar{width:100%; height:45px; line-height:45px; background-color:#38b3f4; border-bottom:#2d8fc3 solid 0.1em;}
	.bar a{display:block; width:100%; text-align:center; text-decoration:none; color:{if empty($_W['styles']['fontnavcolor'])}#FFFFFF{else}{$_W['styles']['fontnavcolor']}{/if}}
	.list,h3,p{padding:0px; margin:0px;}
	.list li{padding: 0 5px; list-style:none;}
	.list li a{display:block; height:71px; padding:5px;background:-webkit-linear-gradient(#ffffff 0%,#dfdfdf 100%);background:-moz-linear-gradient(#ffffff 0%,#dfdfdf 100%); border-radius:3px; border-bottom:#c8c8c8 solid 1px; margin-top:5px; color:#333; overflow:hidden; text-decoration:none !important; position:relative;}
	.list li a .thumb{width:80px; height:60px;}
	.list li a .title{font-size:14px; padding-left:90px;}
	.list li a .createtime{font-size:12px; color:#999; position:absolute; bottom:5px;padding-left:90px;}
</style>
<div class="box clearfix">
	{php $num = 1;}
	{data func="site_navs" section="1" item="nav"}
	<a href="{$nav['url']}" class="box-item {if $num%2}darkblue{else}blue{/if}">
		{if !empty($nav['icon'])}
		<i style="background:url({$_W['attachurl']}{$nav['icon']}) no-repeat;background-size:cover;" class=""></i>
		{else}
		<i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
		{/if}
		<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
	</a>
	{php $num++;}
	{/data}
</div>
<div class="bar">
	{data func="site_navs" section="2" item="row"}
	<a href="{$row['url']}" class="box-item">
		<span style="{$row['css']['name']}" title="{$row['name']}">{$row['name']}</span>
	</a>
	{php if($row['iteration'] > 0) break;}
	{/data}
</div>
<div class="list clearfix">
	{data module="site" func="site_article" cid="$cid" assign="result" return="true"}
	{loop $result['list'] $row}
	<li>
		<a href="{$row['linkurl']}">
			{if $row['thumb']}<img src="{$row['thumb']}" class="pull-left thumb" onerror="this.parentNode.removeChild(this)" />{/if}
			<div class="title">{$row['title']}</div>
			<div class="createtime">{php echo date('Y-m-d H:i:s', $row['createtime'])}</div>
		</a>
	</li>
	{/loop}
</div>
</div>

{template 'common/footer'}